#ifndef _COMMON_PLUGIN_H
#define _COMMON_PLUGIN_H

#include "common_libs.h"

// plugin query defines are in [101;200]
#define QUERY_IDS   101

struct sPlugin {    // the information of the plugin
    void *_data;

    int     (*init)     (sLibs *_libs);
    u32     (*query)    (u32 query);
    int     (*main)     (int argc, char *argv[]);
    void    (*deinit)   ();

    char name[128];
};

#endif

